import request from '@/utils/request'

export default{
    // 条件查询带分页
    getPageList(page,size,searchObj){
        return request({
            url:`admin/hosp/hospitalset/getPageHospitalSet/${page}/${size}`,
            method:'post',
            data:searchObj
        })
    },
    // 根据id删除医院设置
    removeHospSet(id){
        return request({
            url:`admin/hosp/hospitalset/${id}`,
            method:'delete'
        })
    },
    // 批量删除医院设置
    batchRemove(ids){
        return request({
            url:'admin/hosp/hospitalset/removeBatch',
            method:'delete',
            data:ids
        })
    },
    // 锁定解锁状态
    lockHostSet(id,status){
        return request({
            url:`admin/hosp/hospitalset/updateStatus/${id}/${status}`,
            method:'put'
        })
    },
    // 获取医院设置
    getHospSetById(id){
        return request({
            url:`admin/hosp/hospitalset/${id}`,
            method:'get'
        })
    },
    // 更新医院设置
    updateHospitalSet(hospitalSet){
        return request({
            url:`admin/hosp/hospitalset/updateHospitalSet`,
            method:'put',
            data:hospitalSet
        })
    },
    // 添加医院设置
    addHospitalSet(hospitalSet){

        return request({
            url:'admin/hosp/hospitalset/addHospitalSet',
            method:'post',
            data:hospitalSet
        })
    }

}